<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Aftersale/badindex')}">不良记录</a></li>
    </ul>

    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th align="left" width="20%">创建事件</th>
            <th align="left" width="10%">创建时间</th>
            <th align="left" width="10%">锁定状态</th>
            <th align="left" width="10%">记录人</th>
            <th align="left" width="25%">详细描述</th>
            <th width="20%">{:lang('ACTIONS')}</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="results" item="vo">
            <tr>
                <td>{$vo.log_name}</td>
                <td><php>echo date('Y-m-d H:i', $vo['add_time'])</php></td>
                <td>
                    <if ($vo.lock_status)==1><label style="color:#FF0000">已锁定</label>
                    <elseif ($vo.service_status)==2/>
                    <label style="color:#87CEFA">未锁定</label>
                    </if>
                </td>
                <td>
                    {$vo.user_nickname}
                </td>
                <td>{$vo.log_desc}</td>
                <td>
                    <a href="{:url('Aftersale/badgetdetail',array('id'=>$vo['bid']))}">查看记录</a>
                    |
                    <a href="{:url('Aftersale/baddelete',array('id'=>$vo['id']))}" class="js-ajax-delete" data-msg="确定删除记录么？">删除</a>
                    |
                    <if ($vo.lock_status)==1>
                    <a class="js-ajax-delete" data-msg="确定解锁吗？" href="{:url('Aftersale/badlock',array('lock_status'=>$vo['lock_status']))}">解锁</a>
                    </if>
                    <if ($vo.lock_status)==2>
                    <a class="js-ajax-delete" data-msg="确定锁定系统吗？" href="{:url('Aftersale/badlock',array('lock_status'=>$vo['lock_status']))}">锁定系统</a>
                    </if>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination" style="margin-top: -10px">{$page}</div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
</body>
</html>